<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateServicesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // 服务表
        Schema::create('services', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name')->comment('服务名');//LOL 等
            $table->string('img')->comment('服务图片'); //
            $table->text('config')->comment('配置数据');  // 由于每种服务需要的东西都不一样，所以这里使用json字符串存储数据
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('services');
    }
}
